angular.module('app.controllers', ['app.services', 'im.models'])
    .controller('homeCtl', ['$scope', function ($scope) {
        $scope.test = "123455";
    }])
    .controller('aboutCtl', ['$scope', function ($scope) {
        $scope.test = "about";
    }])
    .controller('imCtl', ['$scope', "chat", function ($scope, chat) {
        $scope.msgs = [];
        $scope.msg = "";
        $scope.send = function () {
            chat.sendText($scope.msg,$scope.msgs);
        };

        $scope.getMsgs = function(){
            chat.getMsgs($scope.msgs);

            console.log($scope.msgs);
        };
    }]);
